package Application.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

import Application.entity.Course;
import Application.entity.Record;

public interface RecordDao {

	@Select("select * from Record where studentid=#{studentid} and teacherid=#{teacherid}")
	public List<Record> getRecordsByCourse(Record record);
	
	@Insert("insert into Record(teacherid,studentid,sign)value(#{teacherid},#{studentid},#{sign})")
	@Options(useGeneratedKeys=true,keyProperty="id",keyColumn="id")
	public void insertRecord(Record record);

//	@Select("select  * from record where teacherid=#{teacherid} and sign=#{sign}")
//	public List<Record> findRecords(Record record);
}
